const DBInitScript = {
    scripts: [
        'CREATE TABLE IF NOT EXISTS "cloud_account" (\n' +
        '"id"  INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,\n' +
        '"type"  INTEGER NOT NULL DEFAULT 1,\n' +
        '"name"  TEXT NOT NULL,\n' +
        '"access_id"  TEXT,\n' +
        '"access_key"  TEXT,\n' +
        '"access_secret"  TEXT\n' +
        ');',
        'CREATE TABLE IF NOT EXISTS "proof" (\n' +
        '"id"  INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,\n' +
        '"name" TEXT NOT NULL,\n' +
        '"username"  TEXT NOT NULL,\n' +
        '"password"  TEXT NOT NULL,\n' +
        '"meta"  TEXT\n' +
        ');',
        'CREATE INDEX IF NOT EXISTS "idx_proof_name_1"\n' +
        'ON "proof" ("name" ASC);',
        'CREATE TABLE IF NOT EXISTS "server" (\n' +
        '"id"  INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,\n' +
        '"address" TEXT NOT NULL,\n' +
        '"login_type" INTEGER NOT NULL DEFAULT 1,\n' +
        '"proof_id" INTEGER NOT NULL DEFAULT 0\n' +
        ');',
        'CREATE TABLE IF NOT EXISTS "ssl_server" (\n' +
        '"id"  INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,\n' +
        '"cloud_type"  INTEGER NOT NULL DEFAULT 1,\n' +
        '"ssl_id"  TEXT NOT NULL,\n' +
        '"server_id"  INTEGER NOT NULL DEFAULT 0,\n' +
        '"update_files"  TEXT NOT NULL,\n' +
        '"after_command"  TEXT\n' +
        ');',
        'CREATE INDEX IF NOT EXISTS "idx_ssl_server_cloud_type_1"\n' +
        'ON "ssl_server" ("cloud_type" ASC);',
        'CREATE INDEX IF NOT EXISTS "idx_ssl_server_server_id_2"\n' +
        'ON "ssl_server" ("server_id" ASC);'
    ]
}

export default DBInitScript